#include "SparkEditorMenuMessages.h"


SparkEditorMenuMessages::SparkEditorMenuMessages()
{
	// Search
	wxMenuItem* newSearch = new wxMenuItem(this, IDMENU_MESSAGES_SEARCH, wxT("&Search"), wxT("Search Message Log"), wxITEM_NORMAL);
	wxBitmap newSearchBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/search.png"));
	newSearch->SetBitmap(newSearchBitmap);
	this->Append(newSearch);

	// Clear
	wxMenuItem* newClear = new wxMenuItem(this, IDMENU_MESSAGES_CLEAR, wxT("&Clear"), wxT("Clear Message Log"), wxITEM_NORMAL);
	wxBitmap newClearBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/clear.png"));
	newClear->SetBitmap(newClearBitmap);
	this->Append(newClear);

	// Error
	wxMenuItem* newError = new wxMenuItem(this, IDMENU_MESSAGES_ERROR, wxT("&Error"), wxT("Show Error Messages"), wxITEM_NORMAL);
	wxBitmap newErrorBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/error.png"));
	newError->SetBitmap(newErrorBitmap);
	this->Append(newError);

	// Warning
	wxMenuItem* newWarning = new wxMenuItem(this, IDMENU_MESSAGES_WARNING, wxT("&Warning"), wxT("Show Warning Messages"), wxITEM_NORMAL);
	wxBitmap newWarningBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/warning.png"));
	newWarning->SetBitmap(newWarningBitmap);
	this->Append(newWarning);

	// Info
	wxMenuItem* newInfo = new wxMenuItem(this, IDMENU_MESSAGES_INFO, wxT("&Info"), wxT("Show Info Messages"), wxITEM_NORMAL);
	wxBitmap newInfoBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/info.png"));
	newInfo->SetBitmap(newInfoBitmap);
	this->Append(newInfo);

	// Debug
	wxMenuItem* newDebug = new wxMenuItem(this, IDMENU_MESSAGES_DEBUG, wxT("&Debug"), wxT("Show Debug Messages"), wxITEM_NORMAL);
	wxBitmap newExplorerBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/debuginfo.png"));
	newDebug->SetBitmap(newExplorerBitmap);
	this->Append(newDebug);
}

SparkEditorMenuMessages::~SparkEditorMenuMessages()
{

}

void SparkEditorMenuMessages::ConnectEvent(void)
{
	Connect(IDMENU_MESSAGES_SEARCH, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesSearch));
	Connect(IDMENU_MESSAGES_CLEAR, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesClear));
	Connect(IDMENU_MESSAGES_ERROR, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesError));
	Connect(IDMENU_MESSAGES_WARNING, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesWarning));
	Connect(IDMENU_MESSAGES_INFO, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesInfo));
	Connect(IDMENU_MESSAGES_DEBUG, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorMenuMessages::OnMessagesDebug));
}

void SparkEditorMenuMessages::OnMessagesSearch(wxCommandEvent& event)
{

}

void SparkEditorMenuMessages::OnMessagesClear(wxCommandEvent& event)
{

}

void SparkEditorMenuMessages::OnMessagesError(wxCommandEvent& event)
{

}

void SparkEditorMenuMessages::OnMessagesWarning(wxCommandEvent& event)
{

}

void SparkEditorMenuMessages::OnMessagesInfo(wxCommandEvent& event)
{

}

void SparkEditorMenuMessages::OnMessagesDebug(wxCommandEvent& event)
{

}
